package view;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Toolkit;

import javax.swing.*;

import controls.Connection;

public class MainFrame extends JFrame {
	public MainFrame() {
		super("Caro Online");
		this.setIconImage(Toolkit.getDefaultToolkit().createImage(
				"images/checkX.png"));
		setVisible(true);
		setResizable(false);

		setDefaultCloseOperation(EXIT_ON_CLOSE);
		Container contentPane = getContentPane();
		contentPane.setLayout(new BorderLayout());
		PlayPanel playPanel = new PlayPanel();
		// Connection connection = new Connection();
		InfoPanel infoPanel = new InfoPanel(playPanel);
		contentPane.add(infoPanel, BorderLayout.WEST);
		contentPane.add(playPanel, BorderLayout.CENTER);
		pack();
		setLocationRelativeTo(null);
	}
}
